<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
require('config.php');
if(isset($_POST['regemp'])){
    $dni=$_POST['dni'];
    $nom=$_POST['nomemp'];
    $cognoms=$_POST['cognomsemp'];
    $empremta=$_POST['empremtaemp'];
    $sql='INSERT INTO empleats VALUES("'.$dni.'","'.$nom.'","' .')';
}

?>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body><center>
    <div id="form_reg" >
    <form name="regemp" method="POST" enctype="multipart/form-data" action="<?=$PHP_SELF?>">
        <table border="0" cellspacing="5" cellpadding="3">
            <thead>
                <tr>
                    <td align="left">DNI: </td>
                    <td width="200"><input type="text" name="dni" value="" size="25" /></td>
                </tr>
            </thead>
            <tbody >
                <tr>
                    <td align="left">Nom: </td>
                    <td align="center"><input type="text" name="nomemp" value="" size="25" /></td>
                </tr>
                <tr>
                    <td align="left">Cognoms: </td>
                    <td align="center"><input type="text" name="cognomsemp" value="" size="25"  /></td>
                </tr>
                <tr>
                    <td align="left">Empremta: </td>
                    <td align="center"><input type="text" name="empremtaemp" value="" size="25" /></td>
                </tr>
                 <tr>
                    <td align="left">Actiu: </td>
                    <td align="center"><input type="checkbox" name="actiuemp" value="ON" checked="checked" /></td>
                </tr>
                 <tr>
                    <td colspan=2 align="center"><input type="submit" name="altaemp" value="Enviar"/></td>
                 </tr>
            </tbody>
        </table>
    </form>
    </div>
    
</center>

    </body>
</html>
